From 4de57746437dc3882f9f618d95981f83763f6224 Mon Sep 17 00:00:00 2001 From: Steve Klabnik Date: Mon, 27 Jul 2015 14:49:50 -0400 Subject: [PATCH] Add mention of specific tests in guide Fixes #1407 --- src/doc/guide.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/doc/guide.md b/src/doc/guide.md index c3b847193..f98481d30 100644 --- a/src/doc/guide.md +++ b/src/doc/guide.md @@ -408,6 +408,13 @@ test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured Of course, if your project has tests, you'll see more output, with the correct number of tests. +You can also run a specific test by passing a filter: + +
$ cargo test foo
+
+ +This will run any test with `foo` in its name. + `cargo test` runs additional tests as well. For example, it will compile any examples, you’ve included, and will also test the examples in your documentation. Please see the [testing guide][testing] in the Rust -- 2.30.2